<h3>Authentication  Flow</h3>
<h4>Step 2: Call the Twitter.GetAccessToken() method</h4>
<p>In the page that correspond to the callback url specified in the previous step, place the following code to obtain the Access Token and Secret. You can store them in the Session object to use them in future API calls:</p>

<pre class="codePre">
@@{
    var token = Twitter.GetAccessToken();
    Session["token"] = token.Token;
    Session["secret"] = token.Secret;
}
</pre>

<p>The method retrieves the following token values:</p>

<div>
    <dl>
        <dt>Access Token:</dt>
        <dd>@Session["token"]</dd>
        <dt>Token Secret:</dt>
        <dd>@Session["secret"]</dd>
    </dl>
</div>
 
<div class="message info">
    <span><strong>Note: </strong> In a complete implementation, you should store the access token in a persistent storage (e.g. a database) to use it in future API calls.</span>
</div>